<?php

use think\migration\Seeder;

class AdminUserSeeder extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        $adminUserData = [
            'username' => 'admin',
            'nickname' => 'morrow',
            'password' => password_hash('123456',PASSWORD_DEFAULT),
            'status'=>1,
            'create_time' => time(),
            'avatar' => './static/ace/assets/images/avatars/profile-pic.jpg',
            'group_id' => 1
        ];
        $table = $this->table('admin_user');
        //$table->insert($adminUserData)->save();
    }
}